import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/article_comment_entity.dart';

ArticleCommentEntity $ArticleCommentEntityFromJson(Map<String, dynamic> json) {
	final ArticleCommentEntity articleCommentEntity = ArticleCommentEntity();
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		articleCommentEntity.name = name;
	}
	final String? time = jsonConvert.convert<String>(json['time']);
	if (time != null) {
		articleCommentEntity.time = time;
	}
	final String? profile = jsonConvert.convert<String>(json['profile']);
	if (profile != null) {
		articleCommentEntity.profile = profile;
	}
	final String? content = jsonConvert.convert<String>(json['content']);
	if (content != null) {
		articleCommentEntity.content = content;
	}
	return articleCommentEntity;
}

Map<String, dynamic> $ArticleCommentEntityToJson(ArticleCommentEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['name'] = entity.name;
	data['time'] = entity.time;
	data['profile'] = entity.profile;
	data['content'] = entity.content;
	return data;
}